#!/usr/bin/env bash

for i in $*
do  
    if pgrep -f "$i" > /dev/null ; then 
        for j in $(pgrep -f "$i")
        do 
            # kill -9 $j
            echo "kill $i @ $j "
            bash -c "kill -9 $j"
        done 
    fi 
done 

